package org.example.controller;

import io.swagger.annotations.ApiOperation;
import org.example.service.EasyExcelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/excel")
@RestController
public class EasyExcelController {

    @Autowired
    private EasyExcelService excelService;

    @GetMapping("excelTemplate")
    @ApiOperation(value = "复杂模板导出", produces = "application/octet-stream")
    public void excelTemplate() {
        excelService.excelTemplate();
    }
}
